# import pygame and python modules
import pygame, os.path
from pygame.locals import *

# main image class
class ImageHandler(object):
    def __init__(self):
        "load images using this class"

    def load_image(self, file):
        "loads a single image - supply file name"       
        self.name = os.path.join('Data', file)
        try:
            self.image = pygame.image.load(self.name)
        except pygame.error('loading problem'):
            raise SystemExit('Could not load image "%s" %s' % (self.name, pygame.get_error()))
        return self.image

    def load_images(self, *files):
        "loads multiple files, suppy all file names"
        self.images = []
        for file in files[:]:
            self.names.append(load_image(file))
        return self.images
